import { AppController } from './app.controller';
import { DomainModule } from './modules/domain/domain.module';
import { Module } from '@nestjs/common';
import { DbModule } from '@libs/db';
import { AuthModule } from './modules/auth/auth.module';
import { QrcodeModule } from './modules/qrcode/qrcode.module';
import { SubcodeModule } from './modules/subcode/subcode.module';
import { DisturlModule } from './modules/disturl/disturl.module';
import { ScheduleModule } from '@nestjs/schedule';
import { AppService } from './app.service';

@Module({
  imports: [
    DomainModule,
    DbModule,
    AuthModule,
    QrcodeModule,
    SubcodeModule,
    DisturlModule,
    ScheduleModule.forRoot()
  ],
  providers: [AppService],
  controllers: [
    AppController,]
})
export class AppModule { }
